95a54b83d7428abc078a1733f86ae9701c89ac20,src/test/java/org/assertj/core/api/objectarray/ObjectArrayAssert_filteredOn_notIn_Test.java,ObjectArrayAssert_filteredOn_notIn_Test,should_fail_if_filter_is_on_private_field_and_reading_private_field_is_disabled,#,64
Before Change
setAllowExtractingPrivateFields(false);
try {
assertThat(employees).filteredOn("city", notIn("New York")).isEmpty();
failBecauseExceptionWasNotThrown(IntrospectionError.class);
} catch (IntrospectionError e) {
// expected
} finally {
After Change
@Test
public void should_fail_if_filter_is_on_private_field_and_reading_private_field_is_disabled() {
thrown.expect(IntrospectionError.class);
setAllowExtractingPrivateFields(false);
try {
assertThat(employees).filteredOn("city", notIn("New York")).isEmpty();